#ifndef THREAD_H
#define THREAD_H
#include <functional>
class Thread
{
public:
    // 启动线程
    using ThreadFunc = std::function<void(int)>; // bind语法以及function语法?
    Thread(ThreadFunc threadFunc);
    ~Thread();
    void start();
    int getThreadId();

private:
    ThreadFunc threadFunc_;
    static int generateId_;
    int threadId_;
};

#endif // THREAD_H ///:~